// break 只能跳出所在的一层循环
// 如果像跳出多层循环，可以设置标志位，或使用 goto

#include <stdio.h>

int main(int argc, char const *argv[])
{
    // 我有1角，2角，5角三种硬币，需要组合出一种支付方式
    int x;
    int one, two, five;
    // 设置标志位
    // exit = 0;

    scanf("%d", &x);
    for (one = 0; one < x * 10; one++)
    {
        for (two = 0; two < (x * 10 - one) / 2; two++)
        {
            for (five = 0; five < (x * 10 - one - 2 * two) / 5; five++)
            {
                if (one + 2 * two + 5 * five == x * 10)
                {
                    printf("You can pay %d one jiao, %d two jiao and %d five \
                        jiao conis\n", one, two, five);
                    // exit = 1;
                    // break;
                    goto out;
                }
            }
            //if (exit) break;
        }
        // if (exit) break;
    }

out:
    return 0;
}